home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7648 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.muc.de!hwg!heinz
  2. Subject: Re: GetSysTime() accuracy
  3. Newsgroups: comp.sys.amiga.programmer
  4. References: <4khkab$7p2@toad.stack.urc.tue.nl> <jdj91fzso39.fsf@hyppynaru.cs.hut.fi>
  5. Organization: Private
  6. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  7. From: heinz@hwg.muc.de (Heinz Wrobel)
  8. Message-ID: <heinz.17uf@hwg.muc.de>
  9. Date: Wed, 17 Apr 96 20:49:53 GMT
  10.  
  11. Osma Ahvenlampi (oahvenla@hyppynaru.cs.hut.fi) wrote:
  12. >the calls to GetSysTime() will actually be synchronised to the CIA
  13. >clock itself because of the task switches you cause by doing an I/O
  14.  
  15. Cough, cough. GetSysTime() doesn't cause any task switches.
  16.  
  17. >operation. That's why the results are milliseconds apart, and pretty
  18. >well tied to even thousands.
  19.  
  20. Cough, cough. The CIAs run with ~ 1MHz, not with ~1kHz.
  21.  
  22. >20000 times within Forbid(), I still got 20 millisecond delays after
  23. >each 500 or so calls. I can't explain this immediately, but do note
  24.  
  25. I am not sure why this happens either. It could be interesting to
  26. look into it.
  27.  
  28. >I don't think you will gain any significant increase of accuracy by
  29. >using the CIA directly. GetSysTime() is about as low-level a call as I
  30. >can imagine.
  31.  
  32. Yes. DO NOT HIT THE HW!
  33.  
  34.  
  35. -- 
  36. Heinz Wrobel        Private Mail:   heinz@hwg.muc.de
  37. My private FAX: +49 89 850 51 25, I prefer email
  38.